﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace AMS.Core.Data
{
    [DataContract]
    public class RegistrationData
    {
        [DataMember]
        public LoginData LoginData;
        [DataMember]
        public string FirstName;
        [DataMember]
        public string LastName;
        [DataMember]
        public string EmailAddress;

        public RegistrationData(string username,
            string passwordHash,
            string firstName,
            string lastName,
            string emailAddress)
            : this (new LoginData(username, passwordHash), firstName, lastName, emailAddress)
        { }

        public RegistrationData(LoginData loginData,
            string firstName,
            string lastName,
            string emailAddress)
        {
            this.LoginData = loginData;
            this.FirstName = firstName;
            this.LastName = lastName;
            this.EmailAddress = emailAddress;
        }
    }
}
